home *** CD-ROM | disk | FTP | other *** search
/ F1 Licenseware / F1 Licenseware - Volume 1.iso / disks / 003.dms / 003.adf / TEXT / chapter14.txt < prev    next >
Text File  |  1992-09-02  |  4KB  |  120 lines

  1.  
  2.               The Absolute Beginners Guide To Amos
  3.               -------------------------------------
  4.                          Chapter fourteen
  5.                          ----------------
  6.  
  7. And now a brief word about the SAY command, this command uses the 
  8. Narrator.Device, which can be found in the DEVS drawer on your Amos
  9. system disk or your Workbench disk.  For the SAY command to work you must
  10. have the Narrator.Device on the currently used disk as Amos will 
  11. automatically attempt to load it before use of the command.
  12.  
  13. The say command makes your Amiga speak to you in a synthetic voice and can
  14. be very useful in some programs, Educational games for example where the
  15. Amiga could talk back to the child.
  16. Here is the syntax,
  17.  
  18. SAY "TEXT"
  19.  
  20. It`s very simple isn`t it? Just type what you want the Amiga to SAY to you 
  21. inside quotes, just like the PRINT command.  Load EXAMPLE14.Amos for a quick
  22. demonstration.
  23.  
  24. As you will realize the quality of the speech can be a bit erm... let us say
  25. rubbish.  If SAY is having problems with a particular word then try changing
  26. the spelling of it, e.g. AMIGA to AMEEGAR.
  27.  
  28.  
  29. There are in fact two speech modes for the SAY command as default your Amos
  30. program will stop while the SAY command does it`s thing but you can set 
  31. multitasking on using by putting a 1 after your command this will let your
  32. program continue executing the commands after the SAY command but will slow 
  33. your program down a little. Here is the syntax,
  34.  
  35. SAY "A LOAD OF RHUBARB",1
  36.  
  37. The 1 is the multitasking toggle, to return to normal change this to 0.
  38. Don`t forget the text can be a string variable if you need or want.
  39. Like this,
  40.  
  41. SAY T$
  42. or
  43. SAY YAP$,1
  44.  
  45.  
  46. You can make some other system changes to the SAY command as follows.
  47.  
  48. SET TALK sex,mode,pitch,rate
  49.  
  50. SEX
  51. ---
  52. (No puns here please)
  53. The SEX mode let`s you change between 0 male or 1 female voice, which by the
  54. way does not work very well, you will be better off changing the PITCH value.
  55.  
  56. Mode
  57. ----
  58. Default is 0.  If set to 1 then adds a strange rhythmic pattern to the voice.
  59.  
  60. PITCH
  61. -----
  62. Changes the frequency of the voice from 65(low) to 320 (incredibly high)
  63.  
  64. RATE
  65. ----
  66. Specifies the speed of the talking in words per minute ranging from 40-400.
  67. That`s more than enough on the SAY command let us move on to samples.
  68.  
  69.  
  70. SAMPLES:
  71. =======
  72.  
  73. The easiest way to get samples into Amos and play them is to use the 
  74. Amos Sample_Bank_maker provided on the Amos programs disk, this will convert
  75. your samples into an Amos memory bank file (ABK) which you can load into bank
  76. five, the default sample bank.   
  77.  
  78. You can load your sample bank in like this:
  79.  
  80. LOAD "SAMPLES.ABK"
  81.  
  82. And your samples will be in memory ready for use.  By the way you could now
  83. delete the line as we only need to load the bank once as it will be saved
  84. along with our program listing.
  85.  
  86. Really there are only two commands you need to use for playing samples which 
  87. are as follows,
  88.  
  89.  
  90. SAM LOOP on/off
  91.  
  92. and
  93.  
  94. SAMPLAY sample number  
  95.  
  96.  
  97. SAMLOOP
  98. -------
  99. Is just like TRACK LOOP ON or TRACK LOOP OFF, remember that one?
  100. SAMLOOP will continuously play the last played sample forever or until Amos
  101. reaches a SAMLOOP OFF.
  102.  
  103. SAMPLAY 
  104. -------
  105. This actually plays the sample requested from bank five.  You can store as
  106. many samples as you want in a bank, memory permitting.
  107.  
  108. There are a few other commands but we don`t need to look at these stage
  109. such as SAMBANK bank no. Which allows you to play samples from different
  110. banks.
  111.  
  112. I don`t want to go any further as confusion may get the better of you, just 
  113. load EXAMPLE14_1.Amos and mess around with that for a while.
  114.  
  115.  
  116. End of chapter fourteen.
  117.  
  118.  
  119.   
  120.